﻿<UserControl 
    x:Class="FU.Capstones.IMS.Web.Silverlight.Controls.ContactControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
            
        <!--Tên người liên hệ-->
        <TextBlock 
            Grid.Row="0" Grid.Column="1"
            x:Name="lblcContactName"
            Style="{StaticResource TextBlockNormalStyle}"
            >
            <Run Text="Họ và tên" />
            <Run Text=" *" Foreground="Red" />
        </TextBlock>
        <TextBox 
            Grid.Row="0" Grid.Column="2"
            x:Name="txtcContactName"
            Style="{StaticResource TextBoxNormalStyle}"
            Text="{Binding Path=Contact.FullName, Mode=TwoWay, ValidatesOnDataErrors=True}"
        />

        <!--Điện thoại-->
        <TextBlock 
            Grid.Row="1" Grid.Column="1"
            x:Name="lblcMobilePhone"
            Style="{StaticResource TextBlockNormalStyle}"
            >
            <Run Text="Điện Thoại" />
            <Run Text=" *" Foreground="Red" />
        </TextBlock>
        <TextBox 
            Grid.Row="1" Grid.Column="2"
            x:Name="txtcMobilePhone"
            Style="{StaticResource TextBoxNormalStyle}"
            Text="{Binding Path=Contact.MobilePhone, Mode=TwoWay, ValidatesOnDataErrors=True}"
        />

        
    </Grid>
</UserControl>
